import pandas as pd
list=[[110,120,105],[95,110,108],[98,80,100],[112,106,97]]
index=['王萌','李珊','赵胜','刘文']
columns=['语文','数学','英语']
df=pd.DataFrame(list,index,columns)
df1=df.rename({'语文':'政治'},axis='columns')
df2=df.rename({'李珊':'宋晓东'},axis='index')
df1['政治']=[85,88,70,73]
print('原始数据:\n',df)
print('修改李珊为宋晓东列后的数据:\n',df2)
